const Router = require('koa-router')
const { verifyLogin, verifyAuth } = require('../middleware/auth.middleware')
const { login, authLogin } = require('../controller/auth.controller')

const authRouter = new Router({ prefix: "/auth" })

// 登录
authRouter.post("/login", verifyLogin, login)

// token 登录
authRouter.get("/authLogin", verifyAuth, authLogin)

module.exports = authRouter
